package cn.js.sangu.unitStore.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MsgDTO {
    Long id; // 消息ID
    String uid; // 发送人ID
    String type; // 消息类型
    String content; // 消息内容
    String oppo; // 消息对方
    String from; // 发送人名称
    String to; // 接收人名称
    Integer isRead; // 0未读，1已读取，2未确认，3已确认
    String msgTime; // 消息发送时间

    public MsgDTO(String uid, String type, String content) {
        this.uid = uid;
        this.type = type;
        this.content = content;
    }

    public MsgDTO(String uid, String type, String content, String oppo) {
        this.uid = uid;
        this.type = type;
        this.content = content;
        this.oppo = oppo;
    }

}
